/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module axapbat.h - Header file for ISO batch functions |
   @end

$Log: /SoftPay/SPK2SIM/Source/CPACSrc/cpacbat.h $
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef CPACBAT_H
#define CPACBAT_H

#include <batch.h>


void vdGetCPACProcCode(BATCH_REC* psrBRec,unsigned char* pszData);
void vdSetCPACProcCode(BATCH_REC* psrBRec,unsigned char* pszData);

void vdSetCPACRetRefNum(BATCH_REC* psrBRec,unsigned char* pszData);
void vdSetCPACAdjTipAdjflag(BATCH_REC* psrBRec,char chpszData);//bug fix for tip/adjust flag
char chGetCPACAdjTipAdjflag(BATCH_REC* psrBRec,unsigned char* pszData);
void vdGetCPACPOSEntryMode(BATCH_REC* psrBRec,unsigned char* pszData);
void vdSetCPACPOSEntryMode(BATCH_REC* psrBRec,unsigned char* pszData);
void vdGetCPACMsgTypeId(BATCH_REC* psrBRec,unsigned char* pszData);
void vdSetCPACMsgTypeId(BATCH_REC* psrBRec,unsigned char* pszData);
VS_BOOL fGetCPACOpenTabOffline(BATCH_REC* psrBRec);
void vdSetCPACOpenTabOffline(BATCH_REC* psrBRec,VS_BOOL fData);
long lnGetCPACBatchUploadSTAN(BATCH_REC* psrBRec);
void vdSetCPACBatchUploadSTAN(BATCH_REC* psrBRec,long lnData);
void vdCPACBatRec2GDS(BATCH_REC*);
int inFormCPACBatch(TRANSACTION_OBJECT*);
// Extern declarations
extern void vdSetCPACUserInvNum(BATCH_REC* psrBRec,unsigned char* pszData);
extern void vdGetCPACUserInvNum(BATCH_REC* psrBRec,unsigned char* pszData);
extern void vdGetCPACRetRefNum(BATCH_REC* psrBRec,unsigned char* pszData); // CPAC_LINT Added extern def
#ifdef CITI_PHIL
int inCITIOpenTabRetrieveInv(TRANSACTION_OBJECT* pobTran);
#endif /* CITI_PHIL */


void vdSetTCFlag (BATCH_REC *psrBRec, unsigned char * pszData);
void vdGetTCFlag (BATCH_REC *psrBRec, unsigned char * pszData);
void vdImamSaveCTLData (BATCH_REC *psrBRec, unsigned char * pszData);
void vdImamGetCTLData (BATCH_REC *psrBRec, unsigned char * pszData);
extern void vdFormatAmount(char* pchAmt,VS_BOOL fPutSymbol);

#endif  /* VSIBATCH_H */


